CMDWSTransfer.cs
Code Type: C# Class
Uses Classes: CPatientDataItemXfer, CPatientDataXfer, CStatus, EmrSvcSoapClient, CDataParameterList, CDataSet, CSiteDataXfer, CPatientItemDataItem, CPatientItemComponentDataItem, CItemComponentData, CPatientItemCompList, CPatientChecklistLogic, CLabDataXfer, CTeamDataXfer, CNoteTitleDataXfer, CSpecialtyDataXfer, CClinicDataXfer, CPatientApptItemXfer, CPatientApptXfer, CPatientVisitItemXfer, CPatientVisitXfer, CPatientAdmissionItemXfer, CPatientAdmissionXfer, CPatientConsultItemXfer, CPatientConsultXfer, CWardDataXfer, CSecurityKeyDataXfer, CUserDataXfer
Uses PL/SQL Procedures: PCK_MDWS.GetMDWSPatientRS
Uses MDWS Calls: select, getUnsignedNotes, getNotesWithText, getChemHemReports, getLabTestDescription, isConsultNote, isOneVisitNote, isPrfNote
Lines of Code: 978

public class CMDWSTransfer: CData

	CMDWSTransfe is used to transfer data from MDWS to the central db 

public CStatus TransferPatient(HttpSessionState WebSession,
                                    string strKey, 
                                    long lMatchType, 
                                    string strMatch, 
                                    PatientTO toPatient)

	  Transfers 1 patient and adds the patient to a team, ward etc... as needed 

public CStatus TransferPatient(HttpSessionState WebSession,
                                    string strKey,
                                    PatientTO toPatient,
                                    out string strPatID)

	 Transfers 1 patient and returns the central db patient id 

public CStatus TransferPatientArray(HttpSessionState WebSession,
                                        TaggedPatientArray tpa,
                                        string strKey,
                                        long lMatchType, //1=lastname, 2=LSSN
                                        string strMatch,
                                        out long lCount)

	  Transfers a patient array to our db 

EmrSvcSoapClient GetMDWSSOAPClient()

	gets the soap client so we can talk to mdws 

public CStatus GetMDWSPatientDS(out DataSet ds)

	 get mdws patients 

public CStatus TransferSites(RegionArray ra)

	 transfer regions and sites from MDWS to our tables 

/*public CStatus TransferPatientNotes(string strPatientID,
                                        string strNoteTitle,
                                        long lItemID,
                                        int nLookBackDays)

	 transfers patient notes from MDWS to our tables 

/*
    * public CStatus TransferPatientLabs( string strPatientID,
                                        string strMapID,
                                        long lItemID,
                                        int nLookBackDays)

	 transfer patient labs from MDWS 

public CStatus TransferLabTestArray(TaggedLabTestArrays la,
                                        out long lCount,
                                        out string strNextSearch)

	transfer lab tests from MDWS to the VAPPCT database 

public CStatus TransferTeams(TaggedText txtTeams, out long lCount)

	 Transfer MDWS teams to our db 

public CStatus TransferNoteTitles(TaggedTextArray tta,
                                      string strTarget)

	 Transfer MDWS note tiles to our db 

public CStatus TransferSpecialties(TaggedText txtSpecialties,
                                       out long lCount)

	 transfer MDWS specialties 

public CStatus TransferPatientAppointments( TaggedAppointmentArrays taas)

	 transfer patient appointments 

public CStatus TransferPatientVisits(TaggedVisitArray taas)

	 transfer patient visits to central database 

public CStatus TransferPatientAdmissions(TaggedInpatientStayArray taas)

	 transfer patient admissions to central database 

public CStatus TransferPatientConsults(TaggedConsultArrays taas)

	 transfer patient consults 

public CStatus TransferWards(TaggedHospitalLocationArray HospitalLocArray,
                                 out long lCount)

	 transfer MDWS wards to the checklist db 

public CStatus TransferSecurityKeys( long lUserID,
                                         UserSecurityKeyArray usk,
                                         out long lCount)

	 transfer user security keys 

public CStatus TransferClinics(TaggedHospitalLocationArray HospitalLocArray,
                                   string strTarget)

	 transfer clinics to the central db 

static public DateTime GetMDWSShortDate(string strDateTime)

	get MDWS date without time 

public CStatus TransferPatient(string strDUZ,
                                   long lTeamID,
                                   long lSpecialtyID,
                                   long lWardID,
                                   long lClinicID,
                                   PatientTO toPatient)

	 Transfers 1 patient and adds the patient to a team, ward etc... as needed 

public CStatus TransferPatientArray(string strDUZ,
                                        long lTeamID,
                                        long lSpecialtyID,
                                        long lWardID,
                                        long lClinicID,
                                        TaggedPatientArray tpa,
                                        out long lCount)

	 Transfers a patient array to our db 

public CStatus TransferUserArray( UserArray ua, string strSearch)

	  transfer a MDWS user array to our db 

public CStatus TransferUser(UserTO toUser, long lRegionID, long lSiteID, out long lFXUserID)

	  transfer MDWS user data to the database 

	

